package com.zhumo.sz.entity.area;

import io.swagger.annotations.ApiModel;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * id INT 自增id PARMARY KEY
 * country VARCHAR 国家名称
 * gd_country_code VARCHAR 高德国家编码
 * ipweb_country_code VARCHAR ip网国家编码
 * province VARCHAR 省份名称
 * gd_province_code VARCHAR 高德省份编码
 * ipweb_province_code VARCHAR ip网省份编码
 * district VARCHAR 地区/县 名称
 * gd_district_code VARCHAR 高德地区编码
 * ipweb_district_code VARCHAR ip网地区编码
 * town VARCHAR 街道/乡镇
 * gd_street_code VARCHAR 高德街道编码
 * ipweb_street_code VARCHAR ip网街道编码
 * is_enable TINYINT 是否生效
 * create_time TIMESTAMP 创建时间
 * update_time TIMESTAMP 更新时间
 */
//todo 全域统一公共纬度表
@ApiModel(value = "地区信息",description = "地区信息表")
public class BaseArea {

    private Long id;
    private String ipZipCode;
    private Integer level;

    private String country;
    private String gdCountryCode;
    private String ipwebCountryCode;

    private String province;
    private String gdProvinceCode;
    private String ipwebProvinceCode;
    private String provinceZipCode;

    private String city;
    private String gdCityCode;
    private String ipwebCityCode;
    private String cityZipCode;
    private Double cityLng;
    private Double cityLat;

    private String district;
    private String gdDistrictCode;
    private String ipwebDistrictCode;
    private Double districtLng;
    private Double districtLat;

    private String town;
    private String gdStreetCode;
    private String ipwebStreetCode;
    private String pinYin; // 拼音
    private String jianPin; //简称
    private Double lng; //行政经度
    private Double lat; //行政纬度

    private String parentCode;

    private boolean isEnable;

    private Timestamp createTime;
    private Timestamp updateTime;
}
